<!-- include tpl=head_lay nopadding=true -->

<div class="layui-card">
	<div class="layui-card-header">
		订单编号：{$rs.sn}
		<input type="button" value="复制" data-clipboard-text="{$rs.sn}" class="layui-btn layui-btn-xs phpok-copy" />
	</div>
	<div class="layui-card-body">
		<table class="layui-table">
		<tr>
			<td width="10%" align="right" height="25">订单ID：</td>
			<td>{$rs.id}</td>
			<td width="10%" align="right">下单时间：</td>
			<td>{func time_format $rs.addtime}</td>
			<td width="10%" align="right" height="25">订单状态：</td>
			<td class="darkblue">{$rs.status_title}</td>
		</tr>
		<tr>
			<td align="right" height="25">总金额：</td>
			<td class="red">{func price_format $rs.price $rs.currency_id $rs.currency_id}</td>
			<td align="right">已支付：</td>
			<td class="darkblue">{func price_format $paid_price $rs.currency_id $rs.currency_id}</td>
			<td align="right">未支付：</td>
			<td class="red">{func price_format $unpaid_price $rs.currency_id $rs.currency_id}</td>
		</tr>
		<tr>
			<td align="right" height="25">联系人：</td>
			<td class="darkblue">{$rs.fullname}</td>
			<td align="right">{lang邮箱：}</td>
			<td class="darkblue"><span>{$rs.email}</span></td>
			<td align="right">{lang手机：}</td>
			<td class="darkblue"><span>{$rs.mobile}</span></td>
		</tr>
		<!-- if $rs.ext -->
		<tr>
			<!-- loop from=$rs.ext key=$key value=$value id=$tmpid -->
			<td align="right" height="25">{$key}：</td>
			<td{if $tmpid.total%3 != '' && $tmpid.num == $tmpid.total} colspan="5"{/if} style="line-height:25px;">{$value}</td>
				<!-- if $tmpid.num%3 == '' && $tmpid.num != $tmpid.total -->
				</tr><tr>
				<!-- /if -->
			<!-- /loop -->
		</tr>
		<!-- /if -->
		<!-- if $user -->
		<tr>
			<td class="darkblue" style="line-height:25px;text-align:right;">用户：</td>
			<td class="darkblue" colspan="5" style="line-height:25px;">{$user.user}
				<!-- if $user.mobile -->{lang，}{lang手机号：}{$user.mobile}<!-- /if -->
				<!-- if $user.email -->{lang，}{lang邮箱：}{$user.email}<!-- /if -->
				，注册时间：{func time_format $user.regtime}
				<input type="button" value="查看" onclick="$.win('查看用户_#{$user.id}','{url ctrl=user func=show id=$user.id/}')" class="layui-btn layui-btn-xs" />
			</td>
		</tr>
		<!-- /if -->
		<!-- if $rs.note -->
		<tr>
			<td align="right" height="25">备注：</td>
			<td colspan="5">{$rs.note}</td>
		</tr>
		<!-- /if -->
		</table>
		<!-- if $shipping -->
		<table class="layui-table">
		<thead>
		<tr>
			<th colspan="3">{lang收件人信息}</th>
		</tr>
		</thead>
		<tr>
			<td>
				{$shipping.fullname}
				<!-- if $shipping.mobile -->
				/ {lang手机号} {$shipping.mobile}
				<!-- /if -->
				<!-- if $shipping.tel -->
				/ {lang电话} {$shipping.tel}
				<!-- /if -->
				<!-- if $shipping.email -->
				/ {langEmail} {$shipping.email}
				<!-- /if -->
			</td>
		</tr>
		<tr>
			<td>
				<!-- if $shipping.country != '中国' -->{$shipping.country} / <!-- /if -->
				{$shipping.province}
				<!-- if $shipping.city -->
				{$shipping.city}
				<!-- /if -->
				<!-- if $shipping.county -->
				{$shipping.county}
				<!-- /if -->
				{$shipping.address}
				<!-- if $shipping.zipcode -->
				/ {lang邮编} {$shipping.zipcode}
				<!-- /if -->
			</td>
		</tr>
		</table>
		<!-- /if -->
		
		<table class="layui-table">
		<thead>
		<tr>
			<th width="120">{lang产品图片}</th>
			<th>{lang产品名称}</th>
			<th>{lang产品价格}</th>
			<th>{lang数量}</th>
		</tr>
		</thead>
		<!-- loop from=$rslist key=$key value=$value -->
		<tr>
			<td class="center"><img src="{$value.thumb ? $value.thumb : 'images/picture_default.png'}" width="80px" height="80px" border="0" /></td>
			<td>
				<div style="font-size:14px;">{$value.title}</div>
				<!-- loop from=$value.ext key=$k value=$v id=$tmpid2 -->
				<div class="gray">{$v.title}：{$v.content}</div>
				<!-- /loop -->
				<!-- if $value.weight --><div class="gray">{lang重量：}{$value.weight}Kg</div><!-- /if -->
				<!-- if $value.volume --><div class="gray">{lang体积：}{$value.volume}M<sup>3</sup></div><!-- /if -->
				<!-- if $value.note --><div class="gray">{lang备注：}{$value.note}</div><!-- /if -->
			</td>
			<td>{func price_format $value.price $rs.currency_id $rs.currency_id}</td>
			<td>{$value.qty} {$value.unit}</td>
		</tr>
		<!-- /loop -->
		</table>
		<!-- if $paylist -->
		<table class="layui-table">
		<thead>
		<tr>
			<th class="lft">支付方法</th>
			<th class="lft">金额</th>
			<th>时间</th>
			<th>其他</th>
		</tr>
		</thead>
		<!-- loop from=$paylist key=$key value=$value id=$tmpid -->
		<tr>
			<td>{$value.title}</td>
			<td>{func price_format $value.price $rs.currency_id $rs.currency_id}</td>
			<td class="center">
				<!-- if $value.startdate --><div>始：{func time_format $value.startdate}</div><!-- /if -->
				<!-- if $value.dateline --><div>结：{func time_format $value.dateline}</div><!-- /if -->
			</td>
			<td>
				<!-- if is_array($value.ext) -->
				<!-- loop from=$value.ext key=$k value=$v id=$tmpid2 -->
				<div>{$k}：{$v}</div>
				<!-- /loop -->
				<!-- else -->
				{$value.ext}
				<!-- /if -->
			</td>
		</tr>
		<!-- /loop -->
		</table>
		<!-- /if -->
		<!-- if $loglist -->
		<table class="layui-table">
		<thead>
		<tr>
			<th>日志时间</th>
			<th class="lft">日志内容</th>
			<th>操作人</th>
		</tr>
		</thead>
		<!-- loop from=$loglist key=$key value=$value -->
		<tr>
			<td class="center">{func date "Y-m-d H:i:s" $value.addtime}</td>
			<td>{$value.note}</td>
			<td class="center">{$value.who}</td>
		</tr>
		<!-- /loop -->
		</table>
		<!-- /if -->
		<div>
			<input id="order_url" class="layui-input" value="{$sys.url}{$sys.www_file}?{$sys.ctrl_id}=order&{$sys.func_id}=info&sn={$rs.sn}&passwd={$rs.passwd}&siteId={$session.admin_site_id}" />
			<div class="layui-btn-group" style="margin-top:10px;">
				<input type="button" value="{lang复制}" data-clipboard-text="{$sys.url}{$sys.www_file}?{$sys.ctrl_id}=order&{$sys.func_id}=info&sn={$rs.sn}&passwd={$rs.passwd}&siteId={$session.admin_site_id}" class="layui-btn phpok-copy" />
				<input type="button" value="{lang访问}" onclick="window.open($('#order_url').val())" class="layui-btn" />
			</div>
		</div>
	</div>
</div>
<!-- include tpl=foot_lay -->